﻿using Md.Api.Model.Manage.MdArticleFieldExpansion.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.MdArticleFieldExpansion;
/// <summary>
/// 通过编号获取文章字段扩展服务
/// </summary>
public class GetMdArticleFieldExpansionByIdService : ApiBase<RequestGetMdArticleFieldExpansionByIdModel>
{
    /// <summary>
    /// 文章字段扩展仓储
    /// </summary>
    public MdArticleFieldExpansionRep mdArticleFieldExpansionRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdArticleFieldExpansionRep.GetMdArticleFieldExpansionById(Parameter.ArticleExpanId);

        Result.Data = res;
    }
}

